package com.android.inestpin.model;


import com.android.inestpin.utils.MyLog;
import com.android.inestpin.utils.okhttp3.Callback;
import com.google.gson.Gson;


import okhttp3.Response;

public abstract class checkoutcartCallback extends Callback<checkoutcartdata> {

    @Override
    public checkoutcartdata parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("inest","checkoutcartdata="+string);
        checkoutcartdata data = new Gson().fromJson(string, checkoutcartdata.class);
        return data;
    }
}